package com.gofun.report.model;



import com.fasterxml.jackson.annotation.JsonIgnore;


public class ParkingVo  {
	
	private String parkingID;
	
	private String parkingId;

    private String parkingName;

    private String parkingAddress;
    //parkingReturnType=2停车场满
    private Integer parkingReturnType;
  //parkingReturnType=2停车场满时提示文字
    private String parkingHintDesc;

    private Double  parkingLon;

    private Double  parkingLat;
    
    private Double longitude;
     
    private Double latitude;
    
    private String cityCode;
    
    private String areaCode;
    
    private String businessAreaId;
    
    private Integer parkingState;
    
    private Integer carCount = 0;
    
    private String distance = "0";
    
    private Integer parkPlaceCount;
    
    private Integer useParkPlaceCount;
    
    @JsonIgnore
	public String getParkingID() {
		return parkingID;
	}

	public void setParkingID(String parkingID) {
		this.parkingID = parkingID;
	}

	public String getParkingId() {
		return parkingID;
	}


	public String getParkingName() {
		return parkingName;
	}

	public void setParkingName(String parkingName) {
		this.parkingName = parkingName;
	}

	public String getParkingAddress() {
		return parkingAddress;
	}

	public void setParkingAddress(String parkingAddress) {
		this.parkingAddress = parkingAddress;
	}

	public Integer getParkingReturnType() {
		if(useParkPlaceCount!=null && parkPlaceCount!=null){
			if (useParkPlaceCount >= parkPlaceCount) {
				parkingReturnType = 2;
			}
		}
		return parkingReturnType;
	}

	public void setParkingReturnType(Integer parkingReturnType) {
		this.parkingReturnType = parkingReturnType;
	}

	public Double getParkingLon() {
		return longitude;
	}

	public Double getParkingLat() {
		return latitude;
	}
	
	@JsonIgnore
	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}
	
	@JsonIgnore
	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public String getCityCode() {
		return cityCode;
	}

	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}

	public Integer getParkingState() {
		return parkingState;
	}

	public void setParkingState(Integer parkingState) {
		this.parkingState = parkingState;
	}

	public Integer getCarCount() {
		return carCount;
	}

	public void setCarCount(Integer carCount) {
		this.carCount = carCount;
	}

	public String getDistance() {
		return distance;
	}

	public void setDistance(String distance) {
		this.distance = distance;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((parkingID == null) ? 0 : parkingID.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ParkingVo other = (ParkingVo) obj;
		if (parkingID == null) {
			if (other.parkingID != null)
				return false;
		} else if (!parkingID.equals(other.parkingID))
			return false;
		return true;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public String getBusinessAreaId() {
		return businessAreaId;
	}

	public void setBusinessAreaId(String businessAreaId) {
		this.businessAreaId = businessAreaId;
	}

	public String getParkingHintDesc() {
		return parkingHintDesc;
	}

	public void setParkingHintDesc(String parkingHintDesc) {
		this.parkingHintDesc = parkingHintDesc;
	}

	public Integer getParkPlaceCount() {
		return parkPlaceCount;
	}

	public void setParkPlaceCount(Integer parkPlaceCount) {
		this.parkPlaceCount = parkPlaceCount;
	}

	public Integer getUseParkPlaceCount() {
		return useParkPlaceCount;
	}

	public void setUseParkPlaceCount(Integer useParkPlaceCount) {
		this.useParkPlaceCount = useParkPlaceCount;
	}

    
}
